package com.twu.biblioteca.core;

/**
 * Created by cristianpinto on 2/21/14.
 */
public class User {

    private String libraryNumber;
    private String password;
    private UserInformation userInformation;

    public User(String libraryNumber, String password, UserInformation userInformation) {
        this.libraryNumber = libraryNumber;
        this.password = password;
        this.userInformation = userInformation;
    }

    public String getLibraryNumber() {
        return libraryNumber;
    }

    public UserInformation getUserInformation() {
        return userInformation;
    }

    public boolean isValidPassword(String password) {
        if (this.password.equals(password)) {
            return true;
        }
        return false;
    }
}
